package easy;

public class Solution_1748 {

    public int sumOfUnique(int[] nums) {
        int[] array = new int[101];
        for (int num : nums) {
            array[num]++;
        }
        int sum = 0;
        for (int i = 0; i < array.length; i++) {
            if (array[i] == 1) {
                sum += i;
            }
        }
        return sum;
    }
}
